home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / AVComponents.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  23.1 KB  |  750 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        AVComponents.a
  3. ;
  4. ;    Contains:    Standard includes for standard AV panels
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__AVCOMPONENTS__') = 'UNDEFINED' THEN
  19. __AVCOMPONENTS__ SET 1
  20.  
  21.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  22.     include 'Dialogs.a'
  23.     ENDIF
  24.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  25.     include 'Video.a'
  26.     ENDIF
  27.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  28.     include 'Displays.a'
  29.     ENDIF
  30.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  31.     include 'Components.a'
  32.     ENDIF
  33.  
  34. ;    The subtypes listed here are for example only.  The display manager will find _all_ panels
  35. ;      with the appropriate types.  These panels return class information that is used to devide them
  36. ;      up into groups to be displayed in the AV Windows (class means "geometry" or "color" or other groupings
  37. ;      like that.
  38. ;
  39.  
  40.  
  41. kAVPanelType                    EQU        'avpc'                ; Panel subtypes            
  42. kBrightnessPanelSubType            EQU        'brit'
  43. kContrastPanelSubType            EQU        'cont'
  44. kBitDepthPanelSubType            EQU        'bitd'
  45. kAVEngineType                    EQU        'avec'                ; Engine subtypes                
  46. kBrightnessEngineSubType        EQU        'brit'
  47. kContrastEngineSubType            EQU        'cont'                ;        kBitDepthEngineSubType        = 'bitd',            // Not used                    
  48. kAVPortType                        EQU        'avdp'                ;subtypes are defined in each port's public .h file
  49. ;  PortComponent subtypes are up to the port and display manager does not use the subtype
  50. ;    to find port components.  Instead, display manager uses an internal cache to search for portcompoennts.
  51. ;    It turns out to be useful to have a unique subtype so that engines can see if they should apply themselves to
  52. ;    a particular port component.
  53. ;  
  54. ;   PortKinds are the "class" of port.  When a port is registered with display manager (creating a display ID), the
  55. ;    caller of DMNewDisplayIDByPortComponent passes a portKind.  Ports of this type are returned by
  56. ;    DMNewDevicePortList.
  57. ;  
  58. ;   PortKinds are NOT subtypes of components
  59. ;   PortKinds ARE used to register and find port components with Display Manager.  Here are the basic port kinds:
  60. ;  
  61. ;   Video displays are distinct from video out because there are some video out ports that are not actaully displays.
  62. ;    if EZAV is looking to configure displays, it needs to look for kAVVideoDisplayPortKind not kAVVideoOutPortKind.
  63.  
  64.  
  65. kAVVideoDisplayPortKind            EQU        'pkdo'                ; Video Display (CRT or panel display)                
  66. kAVVideoOutPortKind                EQU        'pkvo'                ; Video out port (camera output).                      
  67. kAVVideoInPortKind                EQU        'pkvi'                ; Video in port (camera input)                        
  68. kAVSoundOutPortKind                EQU        'pkso'                ; Sound out port (speaker or speaker jack)            
  69. kAVSoundInPortKind                EQU        'pksi'                ; Sound in port (microphone or microphone jack)    
  70. kAVDeviceType                    EQU        'avdc'                ; Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster) 
  71. kAVDisplayDeviceKind            EQU        'dkvo'                ; Display device
  72.                                                             ; Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster)
  73. kAVCategoryType                    EQU        'avcc'
  74. kAVSoundInSubType                EQU        'avao'
  75. kAVSoundOutSubType                EQU        'avai'
  76. kAVVideoInSubType                EQU        'vdin'
  77. kAVVideoOutSubType                EQU        'vdou'
  78. kAVInvalidType                    EQU        'badt'                ; Some calls return a component type, in case of errors, these types are set to kAVInvalidComponentType 
  79.  
  80.  
  81. ;   Constants for Panel Classes (used to build buttons in AVSetup) 
  82. ;   but is generic to all panels 
  83.  
  84.  
  85.  
  86. kAVPanelClassDisplayDefault        EQU        'cdsp'
  87. kAVPanelClassColor                EQU        'cclr'
  88. kAVPanelClassGeometry            EQU        'cgeo'
  89. kAVPanelClassSound                EQU        'csnd'
  90. kAVPanelClassPreferences        EQU        'cprf'
  91. ;  =============================                    
  92. ;  Component interface revision levels and history    
  93. ;  =============================                    
  94.  
  95. kAVPanelComponentInterfaceRevOne EQU    1
  96. kAVEngineComponentInterfaceRevOne EQU    1
  97. kAVPortComponentInterfaceRevOne    EQU        1
  98. kAVDeviceComponentInterfaceRevOne EQU    1
  99.  
  100.  
  101. kBaseAVComponentSelector        EQU        256                    ; First apple-defined selector for AV components 
  102. kAppleAVComponentSelector        EQU        512                    ; First apple-defined type-specific selector for AV components 
  103.  
  104. ;  =============================                
  105. ;  Panel Standard component selectors            
  106. ;  =============================                
  107.  
  108. kAVPanelFakeRegisterSelect        EQU        -5                    ; -5    
  109. kAVPanelSetCustomDataSelect        EQU        0
  110. kAVPanelGetDitlSelect            EQU        1
  111. kAVPanelGetTitleSelect            EQU        2
  112. kAVPanelInstallSelect            EQU        3
  113. kAVPanelEventSelect                EQU        4
  114. kAVPanelItemSelect                EQU        5
  115. kAVPanelRemoveSelect            EQU        6
  116. kAVPanelValidateInputSelect        EQU        7
  117. kAVPanelGetSettingsIdentifiersSelect EQU 8
  118. kAVPanelGetSettingsSelect        EQU        9
  119. kAVPanelSetSettingsSelect        EQU        10
  120. kAVPanelSelectorGetFidelitySelect EQU    256
  121. kAVPanelSelectorTargetDeviceSelect EQU    257
  122. kAVPanelSelectorGetPanelClassSelect EQU    258
  123.  
  124. ;  =============================                
  125. ;  Engine Standard component selectors            
  126. ;  =============================                
  127.  
  128. kAVEngineGetEngineFidelitySelect EQU    256
  129. kAVEngineTargetDeviceSelect        EQU        257
  130.  
  131. ;  =============================                    
  132. ;  Video Port Specific calls                        
  133. ;  =============================                    
  134.  
  135. kAVPortCheckTimingModeSelect    EQU        0
  136. kAVPortReserved1Select            EQU        1                    ; Reserved
  137. kAVPortReserved2Select            EQU        2                    ; Reserved
  138. kAVPortGetDisplayTimingInfoSelect EQU    512
  139.  
  140. ;  =============================                    
  141. ;  AV Port Specific calls                            
  142. ;  =============================                    
  143.  
  144. kAVPortGetAVDeviceFidelitySelect EQU    256                    ; Port Standard Component selectors 
  145. kAVPortGetWiggleSelect            EQU        257
  146. kAVPortSetWiggleSelect            EQU        258
  147. kAVPortGetNameSelect            EQU        259
  148. kAVPortGetGraphicInfoSelect        EQU        260
  149. kAVPortSetActiveSelect            EQU        261
  150. kAVPortGetActiveSelect            EQU        262
  151. kAVPortUnsed1Select                EQU        263                    ; Selector removed as part of API change.  We don't want to mess up the following selectors, so we put in this spacer (ie kPadSelector). 
  152. kAVPortGetAVIDSelect            EQU        264
  153. kAVPortSetAVIDSelect            EQU        265
  154. kAVPortSetDeviceAVIDSelect        EQU        266                    ; For registrar to set device (instead of hitting global directly) -- should only be called once 
  155. kAVPortGetDeviceAVIDSelect        EQU        267                    ; Called by display mgr for generic ports 
  156. kAVPortGetPowerStateSelect        EQU        268
  157. kAVPortSetPowerStateSelect        EQU        269
  158. kAVPortGetMakeAndModelSelect    EQU        270                    ; Get Make and model information
  159.  
  160.  
  161.  
  162. ;  =============================                    
  163. ;  Device Component Standard Component selectors    
  164. ;  =============================                    
  165.  
  166. kAVDeviceGetNameSelect            EQU        256
  167. kAVDeviceGetGraphicInfoSelect    EQU        257
  168. kAVDeviceGetPowerStateSelect    EQU        258
  169. kAVDeviceSetPowerStateSelect    EQU        259
  170. kAVDeviceGetAVIDSelect            EQU        260
  171. kAVDeviceSetAVIDSelect            EQU        261
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179. ;  =============================                
  180. ;  Engine Standard component selectors            
  181. ;  =============================                
  182. ;
  183. ; pascal ComponentResult AVEngineComponentGetFidelity(ComponentInstance engineComponent, DisplayIDType displayID, DMFidelityType *engineFidelity)
  184. ;
  185.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  186.         Macro
  187.         _AVEngineComponentGetFidelity
  188.             move.l              #$00080100,-(sp)
  189.             moveq               #0,D0
  190.             dc.w                $A82A
  191.         EndM
  192.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  193.         IMPORT_CFM_FUNCTION AVEngineComponentGetFidelity
  194.     ENDIF
  195.  
  196. ;
  197. ; pascal ComponentResult AVEngineComponentTargetDevice(ComponentInstance engineComponent, DisplayIDType displayID)
  198. ;
  199.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  200.         Macro
  201.         _AVEngineComponentTargetDevice
  202.             move.l              #$00040101,-(sp)
  203.             moveq               #0,D0
  204.             dc.w                $A82A
  205.         EndM
  206.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  207.         IMPORT_CFM_FUNCTION AVEngineComponentTargetDevice
  208.     ENDIF
  209.  
  210.  
  211. ;  =============================                
  212. ;  Panel Standard Component calls                
  213. ;  =============================                
  214. ;
  215. ; pascal ComponentResult AVPanelFakeRegister(ComponentInstance ci)
  216. ;
  217.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  218.         Macro
  219.         _AVPanelFakeRegister
  220.             move.l              #$0000FFFB,-(sp)
  221.             moveq               #0,D0
  222.             dc.w                $A82A
  223.         EndM
  224.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  225.         IMPORT_CFM_FUNCTION AVPanelFakeRegister
  226.     ENDIF
  227.  
  228. ;
  229. ; pascal ComponentResult AVPanelSetCustomData(ComponentInstance ci, long theCustomData)
  230. ;
  231.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  232.         Macro
  233.         _AVPanelSetCustomData
  234.             move.l              #$00040000,-(sp)
  235.             moveq               #0,D0
  236.             dc.w                $A82A
  237.         EndM
  238.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  239.         IMPORT_CFM_FUNCTION AVPanelSetCustomData
  240.     ENDIF
  241.  
  242. ;
  243. ; pascal ComponentResult AVPanelGetDitl(ComponentInstance ci, Handle *ditl)
  244. ;
  245.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  246.         Macro
  247.         _AVPanelGetDitl
  248.             move.l              #$00040001,-(sp)
  249.             moveq               #0,D0
  250.             dc.w                $A82A
  251.         EndM
  252.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  253.         IMPORT_CFM_FUNCTION AVPanelGetDitl
  254.     ENDIF
  255.  
  256. ;
  257. ; pascal ComponentResult AVPanelGetTitle(ComponentInstance ci, StringPtr title)
  258. ;
  259.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  260.         Macro
  261.         _AVPanelGetTitle
  262.             move.l              #$00040002,-(sp)
  263.             moveq               #0,D0
  264.             dc.w                $A82A
  265.         EndM
  266.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  267.         IMPORT_CFM_FUNCTION AVPanelGetTitle
  268.     ENDIF
  269.  
  270. ;
  271. ; pascal ComponentResult AVPanelInstall(ComponentInstance ci, DialogPtr dialog, short itemOffset)
  272. ;
  273.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  274.         Macro
  275.         _AVPanelInstall
  276.             move.l              #$00060003,-(sp)
  277.             moveq               #0,D0
  278.             dc.w                $A82A
  279.         EndM
  280.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  281.         IMPORT_CFM_FUNCTION AVPanelInstall
  282.     ENDIF
  283.  
  284. ;
  285. ; pascal ComponentResult AVPanelEvent(ComponentInstance ci, DialogPtr dialog, short itemOffset, EventRecord *event, short *itemHit, Boolean *handled)
  286. ;
  287.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  288.         Macro
  289.         _AVPanelEvent
  290.             move.l              #$00120004,-(sp)
  291.             moveq               #0,D0
  292.             dc.w                $A82A
  293.         EndM
  294.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  295.         IMPORT_CFM_FUNCTION AVPanelEvent
  296.     ENDIF
  297.  
  298. ;
  299. ; pascal ComponentResult AVPanelItem(ComponentInstance ci, DialogPtr dialog, short itemOffset, short itemNum)
  300. ;
  301.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  302.         Macro
  303.         _AVPanelItem
  304.             move.l              #$00080005,-(sp)
  305.             moveq               #0,D0
  306.             dc.w                $A82A
  307.         EndM
  308.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  309.         IMPORT_CFM_FUNCTION AVPanelItem
  310.     ENDIF
  311.  
  312. ;
  313. ; pascal ComponentResult AVPanelRemove(ComponentInstance ci, DialogPtr dialog, short itemOffset)
  314. ;
  315.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  316.         Macro
  317.         _AVPanelRemove
  318.             move.l              #$00060006,-(sp)
  319.             moveq               #0,D0
  320.             dc.w                $A82A
  321.         EndM
  322.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  323.         IMPORT_CFM_FUNCTION AVPanelRemove
  324.     ENDIF
  325.  
  326. ;
  327. ; pascal ComponentResult AVPanelValidateInput(ComponentInstance ci, Boolean *ok)
  328. ;
  329.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  330.         Macro
  331.         _AVPanelValidateInput
  332.             move.l              #$00040007,-(sp)
  333.             moveq               #0,D0
  334.             dc.w                $A82A
  335.         EndM
  336.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  337.         IMPORT_CFM_FUNCTION AVPanelValidateInput
  338.     ENDIF
  339.  
  340. ;
  341. ; pascal ComponentResult AVPanelGetSettingsIdentifiers(ComponentInstance ci, short *theID, OSType *theType)
  342. ;
  343.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  344.         Macro
  345.         _AVPanelGetSettingsIdentifiers
  346.             move.l              #$00080008,-(sp)
  347.             moveq               #0,D0
  348.             dc.w                $A82A
  349.         EndM
  350.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  351.         IMPORT_CFM_FUNCTION AVPanelGetSettingsIdentifiers
  352.     ENDIF
  353.  
  354. ;
  355. ; pascal ComponentResult AVPanelGetSettings(ComponentInstance ci, Handle *userDataHand, long flags, DialogPtr theDialog, long itemsOffset)
  356. ;
  357.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  358.         Macro
  359.         _AVPanelGetSettings
  360.             move.l              #$00100009,-(sp)
  361.             moveq               #0,D0
  362.             dc.w                $A82A
  363.         EndM
  364.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  365.         IMPORT_CFM_FUNCTION AVPanelGetSettings
  366.     ENDIF
  367.  
  368. ;
  369. ; pascal ComponentResult AVPanelSetSettings(ComponentInstance ci, Handle userDataHand, long flags, DialogPtr theDialog, long itemsOffset)
  370. ;
  371.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  372.         Macro
  373.         _AVPanelSetSettings
  374.             move.l              #$0010000A,-(sp)
  375.             moveq               #0,D0
  376.             dc.w                $A82A
  377.         EndM
  378.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  379.         IMPORT_CFM_FUNCTION AVPanelSetSettings
  380.     ENDIF
  381.  
  382. ;
  383. ; pascal ComponentResult AVPanelGetFidelity(ComponentInstance panelComponent, DisplayIDType displayID, DMFidelityType *panelFidelity)
  384. ;
  385.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  386.         Macro
  387.         _AVPanelGetFidelity
  388.             move.l              #$00080100,-(sp)
  389.             moveq               #0,D0
  390.             dc.w                $A82A
  391.         EndM
  392.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  393.         IMPORT_CFM_FUNCTION AVPanelGetFidelity
  394.     ENDIF
  395.  
  396. ;
  397. ; pascal ComponentResult AVPanelComponentTargetDevice(ComponentInstance panelComponent, DisplayIDType displayID, DialogPtr theDialog, long itemsOffset)
  398. ;
  399.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  400.         Macro
  401.         _AVPanelComponentTargetDevice
  402.             move.l              #$000C0101,-(sp)
  403.             moveq               #0,D0
  404.             dc.w                $A82A
  405.         EndM
  406.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  407.         IMPORT_CFM_FUNCTION AVPanelComponentTargetDevice
  408.     ENDIF
  409.  
  410. ;
  411. ; pascal ComponentResult AVPanelComponentGetPanelClass(ComponentInstance panelComponent, ResType *panelClass, ResType *subClass, Ptr reserved1, Ptr reserved2)
  412. ;
  413.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  414.         Macro
  415.         _AVPanelComponentGetPanelClass
  416.             move.l              #$00100102,-(sp)
  417.             moveq               #0,D0
  418.             dc.w                $A82A
  419.         EndM
  420.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  421.         IMPORT_CFM_FUNCTION AVPanelComponentGetPanelClass
  422.     ENDIF
  423.  
  424.  
  425. ;  =============================                
  426. ;  Port Component Standard Component selectors    
  427. ;  =============================                
  428. ;
  429. ; pascal ComponentResult AVPortGetAVDeviceFidelity(ComponentInstance portComponent, AVIDType deviceAVID, DMFidelityType *portFidelity)
  430. ;
  431.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  432.         Macro
  433.         _AVPortGetAVDeviceFidelity
  434.             move.l              #$00080100,-(sp)
  435.             moveq               #0,D0
  436.             dc.w                $A82A
  437.         EndM
  438.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  439.         IMPORT_CFM_FUNCTION AVPortGetAVDeviceFidelity
  440.     ENDIF
  441.  
  442. ;
  443. ; pascal ComponentResult AVPortGetWiggle(ComponentInstance portComponent, Boolean *wiggleDevice)
  444. ;
  445.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  446.         Macro
  447.         _AVPortGetWiggle
  448.             move.l              #$00040101,-(sp)
  449.             moveq               #0,D0
  450.             dc.w                $A82A
  451.         EndM
  452.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  453.         IMPORT_CFM_FUNCTION AVPortGetWiggle
  454.     ENDIF
  455.  
  456. ;
  457. ; pascal ComponentResult AVPortSetWiggle(ComponentInstance portComponent, Boolean wiggleDevice)
  458. ;
  459.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  460.         Macro
  461.         _AVPortSetWiggle
  462.             move.l              #$00020102,-(sp)
  463.             moveq               #0,D0
  464.             dc.w                $A82A
  465.         EndM
  466.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  467.         IMPORT_CFM_FUNCTION AVPortSetWiggle
  468.     ENDIF
  469.  
  470. ;
  471. ; pascal ComponentResult AVPortGetName(ComponentInstance portComponent, Str255 portName)
  472. ;
  473.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  474.         Macro
  475.         _AVPortGetName
  476.             move.l              #$00040103,-(sp)
  477.             moveq               #0,D0
  478.             dc.w                $A82A
  479.         EndM
  480.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  481.         IMPORT_CFM_FUNCTION AVPortGetName
  482.     ENDIF
  483.  
  484. ;
  485. ; pascal ComponentResult AVPortGetGraphicInfo(ComponentInstance portComponent, PicHandle *thePict, Handle *theIconSuite, AVLocationPtr theLocation)
  486. ;
  487.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  488.         Macro
  489.         _AVPortGetGraphicInfo
  490.             move.l              #$000C0104,-(sp)
  491.             moveq               #0,D0
  492.             dc.w                $A82A
  493.         EndM
  494.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  495.         IMPORT_CFM_FUNCTION AVPortGetGraphicInfo
  496.     ENDIF
  497.  
  498. ;
  499. ; pascal ComponentResult AVPortSetActive(ComponentInstance portComponent, Boolean setActive)
  500. ;
  501.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  502.         Macro
  503.         _AVPortSetActive
  504.             move.l              #$00020105,-(sp)
  505.             moveq               #0,D0
  506.             dc.w                $A82A
  507.         EndM
  508.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  509.         IMPORT_CFM_FUNCTION AVPortSetActive
  510.     ENDIF
  511.  
  512. ;
  513. ; pascal ComponentResult AVPortGetActive(ComponentInstance portComponent, Boolean *isPortActive, Boolean *portCanBeActivated, void *reserved)
  514. ;
  515.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  516.         Macro
  517.         _AVPortGetActive
  518.             move.l              #$000C0106,-(sp)
  519.             moveq               #0,D0
  520.             dc.w                $A82A
  521.         EndM
  522.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  523.         IMPORT_CFM_FUNCTION AVPortGetActive
  524.     ENDIF
  525.  
  526. ;
  527. ; pascal ComponentResult AVPortGetAVID(ComponentInstance portComponent, AVIDType *avPortID)
  528. ;
  529.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  530.         Macro
  531.         _AVPortGetAVID
  532.             move.l              #$00040108,-(sp)
  533.             moveq               #0,D0
  534.             dc.w                $A82A
  535.         EndM
  536.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  537.         IMPORT_CFM_FUNCTION AVPortGetAVID
  538.     ENDIF
  539.  
  540. ;
  541. ; pascal ComponentResult AVPortSetAVID(ComponentInstance portComponent, AVIDType avPortID)
  542. ;
  543.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  544.         Macro
  545.         _AVPortSetAVID
  546.             move.l              #$00040109,-(sp)
  547.             moveq               #0,D0
  548.             dc.w                $A82A
  549.         EndM
  550.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  551.         IMPORT_CFM_FUNCTION AVPortSetAVID
  552.     ENDIF
  553.  
  554. ;
  555. ; pascal ComponentResult AVPortSetDeviceAVID(ComponentInstance portComponent, AVIDType avDeviceID)
  556. ;
  557.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  558.         Macro
  559.         _AVPortSetDeviceAVID
  560.             move.l              #$0004010A,-(sp)
  561.             moveq               #0,D0
  562.             dc.w                $A82A
  563.         EndM
  564.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  565.         IMPORT_CFM_FUNCTION AVPortSetDeviceAVID
  566.     ENDIF
  567.  
  568. ;
  569. ; pascal ComponentResult AVPortGetDeviceAVID(ComponentInstance portComponent, AVIDType *avDeviceID)
  570. ;
  571.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  572.         Macro
  573.         _AVPortGetDeviceAVID
  574.             move.l              #$0004010B,-(sp)
  575.             moveq               #0,D0
  576.             dc.w                $A82A
  577.         EndM
  578.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  579.         IMPORT_CFM_FUNCTION AVPortGetDeviceAVID
  580.     ENDIF
  581.  
  582. ;
  583. ; pascal ComponentResult AVPortGetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr getPowerState)
  584. ;
  585.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  586.         Macro
  587.         _AVPortGetPowerState
  588.             move.l              #$0004010C,-(sp)
  589.             moveq               #0,D0
  590.             dc.w                $A82A
  591.         EndM
  592.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  593.         IMPORT_CFM_FUNCTION AVPortGetPowerState
  594.     ENDIF
  595.  
  596. ;
  597. ; pascal ComponentResult AVPortSetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr setPowerState)
  598. ;
  599.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  600.         Macro
  601.         _AVPortSetPowerState
  602.             move.l              #$0004010D,-(sp)
  603.             moveq               #0,D0
  604.             dc.w                $A82A
  605.         EndM
  606.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  607.         IMPORT_CFM_FUNCTION AVPortSetPowerState
  608.     ENDIF
  609.  
  610. ;
  611. ; pascal ComponentResult AVPortGetMakeAndModel(ComponentInstance displayComponent, DisplayIDType theDisplayID, ResType *manufacturer, UInt32 *model, UInt32 *serialNumber)
  612. ;
  613.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  614.         Macro
  615.         _AVPortGetMakeAndModel
  616.             move.l              #$0010010E,-(sp)
  617.             moveq               #0,D0
  618.             dc.w                $A82A
  619.         EndM
  620.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  621.         IMPORT_CFM_FUNCTION AVPortGetMakeAndModel
  622.     ENDIF
  623.  
  624.  
  625. ;  =============================                
  626. ;  Video Out Port Component Selectors            
  627. ;  =============================                
  628. ;
  629. ; pascal ComponentResult AVPortCheckTimingMode(ComponentInstance displayComponent, DisplayIDType theDisplayID, VDDisplayConnectInfoPtr connectInfo, VDTimingInfoPtr modeTiming, UInt32 reserved)
  630. ;
  631.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  632.         Macro
  633.         _AVPortCheckTimingMode
  634.             move.l              #$00100000,-(sp)
  635.             moveq               #0,D0
  636.             dc.w                $A82A
  637.         EndM
  638.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  639.         IMPORT_CFM_FUNCTION AVPortCheckTimingMode
  640.     ENDIF
  641.  
  642. ;
  643. ; pascal ComponentResult AVPortGetDisplayTimingInfo(ComponentInstance displayComponent, VDTimingInfoPtr modeTiming, UInt32 requestedVersion, DMDisplayTimingInfoPtr modeInfo, UInt32 reserved)
  644. ;
  645.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  646.         Macro
  647.         _AVPortGetDisplayTimingInfo
  648.             move.l              #$00100200,-(sp)
  649.             moveq               #0,D0
  650.             dc.w                $A82A
  651.         EndM
  652.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  653.         IMPORT_CFM_FUNCTION AVPortGetDisplayTimingInfo
  654.     ENDIF
  655.  
  656. ;  =============================                
  657. ;  AV Device Component Selectors                
  658. ;  =============================                
  659. ;
  660. ; pascal ComponentResult AVDeviceGetName(ComponentInstance portComponent, Str255 portName)
  661. ;
  662.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  663.         Macro
  664.         _AVDeviceGetName
  665.             move.l              #$00040100,-(sp)
  666.             moveq               #0,D0
  667.             dc.w                $A82A
  668.         EndM
  669.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  670.         IMPORT_CFM_FUNCTION AVDeviceGetName
  671.     ENDIF
  672.  
  673. ;
  674. ; pascal ComponentResult AVDeviceGetGraphicInfo(ComponentInstance portComponent, PicHandle *thePict, Handle *theIconSuite, AVLocationPtr theLocation)
  675. ;
  676.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  677.         Macro
  678.         _AVDeviceGetGraphicInfo
  679.             move.l              #$000C0101,-(sp)
  680.             moveq               #0,D0
  681.             dc.w                $A82A
  682.         EndM
  683.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  684.         IMPORT_CFM_FUNCTION AVDeviceGetGraphicInfo
  685.     ENDIF
  686.  
  687. ;
  688. ; pascal ComponentResult AVDeviceGetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr getPowerState)
  689. ;
  690.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  691.         Macro
  692.         _AVDeviceGetPowerState
  693.             move.l              #$00040102,-(sp)
  694.             moveq               #0,D0
  695.             dc.w                $A82A
  696.         EndM
  697.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  698.         IMPORT_CFM_FUNCTION AVDeviceGetPowerState
  699.     ENDIF
  700.  
  701. ;
  702. ; pascal ComponentResult AVDeviceSetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr setPowerState)
  703. ;
  704.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  705.         Macro
  706.         _AVDeviceSetPowerState
  707.             move.l              #$00040103,-(sp)
  708.             moveq               #0,D0
  709.             dc.w                $A82A
  710.         EndM
  711.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  712.         IMPORT_CFM_FUNCTION AVDeviceSetPowerState
  713.     ENDIF
  714.  
  715. ;
  716. ; pascal ComponentResult AVDeviceGetAVID(ComponentInstance deviceComponent, AVIDType *avDeviceID)
  717. ;
  718.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  719.         Macro
  720.         _AVDeviceGetAVID
  721.             move.l              #$00040104,-(sp)
  722.             moveq               #0,D0
  723.             dc.w                $A82A
  724.         EndM
  725.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  726.         IMPORT_CFM_FUNCTION AVDeviceGetAVID
  727.     ENDIF
  728.  
  729. ;
  730. ; pascal ComponentResult AVDeviceSetAVID(ComponentInstance deviceComponent, AVIDType avDeviceID)
  731. ;
  732.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  733.         Macro
  734.         _AVDeviceSetAVID
  735.             move.l              #$00040105,-(sp)
  736.             moveq               #0,D0
  737.             dc.w                $A82A
  738.         EndM
  739.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  740.         IMPORT_CFM_FUNCTION AVDeviceSetAVID
  741.     ENDIF
  742.  
  743.  
  744.  
  745.  
  746.     ENDIF ; __AVCOMPONENTS__ 
  747.  
  748.